package com.vcg.example.service.impl;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.vcg.example.model.User;
import com.vcg.example.service.UserService;

/**
 * 
 * @author wuyu
 *
 */


@RestController
public class UserServiceImpl implements UserService {
	public User findById(@PathVariable("id") Integer id) {
		return new User()
				.setId(id);
	}

	public User insert(@RequestBody User user) {
		return user;
	}

	public Integer delete(@PathVariable("id") Integer id) {
		return id;
	}

	public User update(@RequestBody User user) {
		return user;
	}



}